-- All code by Kez
-- How to make a SWEP Example Code
-- Use this to make a bog standard gun
-- Don't bother asking me permission etc. just gimme some credit on anythin u make with this
-- If you need help join my steam help group on http://steamcommunity.com/groups/kezswephelp


if ( SERVER ) then

	AddCSLuaFile( "shared.lua" )
	
	SWEP.HoldType			= "smg"	-- How we hold the weapon. Go for pistol for handguns, smg for smgs, shotgun for stuff like that, rpg for rocket launcher and ar2 for rifles
	
end

if ( CLIENT ) then

	SWEP.Author				= "Mr.Sniper"	-- Add your name here
	SWEP.Contact			= ""	-- Keep this the same plz 
	SWEP.Purpose			= "Taking Care Of Business..."	-- Whats the point of your swep?
	SWEP.Instructions		= "Left Click to fire"	-- How to use your weapon
	SWEP.PrintName			= "Hellsing Jackle"	-- What your swep is called	
	SWEP.Slot				= 2	-- Which slot your swep is under e.g 3 will be under smgs
	SWEP.SlotPos			= 0	-- Leave this as 0 so your swep won't overwrite any others
	SWEP.DrawAmmo		= true	-- Do we show the user ammo amounts? 
	SWEP.DrawCrosshair	= false	-- Do we show a crosshair
	SWEP.IconLetter			= "y"	-- The icon of your weapon in the menu e.g y is usp
	
	SWEP.ViewModelFlip		= true	-- Change this to false if your model is on the wrong side
	
	killicon.AddFont("cse_elites","CSKillIcons",SWEP.IconLetter,Color(255,80,0,255))	-- Killicon
	
end


SWEP.Base				= "weapon_cs_base"	-- Leave this unless you have a custom base

SWEP.Spawnable			= true	-- Can anyone spawn this (change this to false if you want admin only)
SWEP.AdminSpawnable		= true	-- Can only admins spawn this (leave this as true)

SWEP.ViewModel			= "models/weapons/v_pist_jack11.mdl"	-- The player view model
SWEP.WorldModel			= "models/weapons/w_pist_deagle.mdl"	-- The model other players see

SWEP.Weight				= 3	-- How heavy it is (5 is a good value for rifles etc.)
SWEP.AutoSwitchTo		= true	-- Do you auto switch to this weapon when we pick it up
SWEP.AutoSwitchFrom		= false	-- Do you change from this weapon if you pick up another?

SWEP.Primary.Sound			= Sound("Weapon_deagle.Single")	-- The sound when you fire
SWEP.Primary.Recoil			= 2	-- How much your view is punched after each shot
SWEP.Primary.Damage			= 50	-- How much damage it deals e.g about 50 for an ak47
SWEP.Primary.NumShots		= 1	-- Number of bullets fired with each shot e.g 8 for a shotgun
SWEP.Primary.Cone			= 0.02	-- Number of degrees of spread
SWEP.Primary.ClipSize		= 15	-- How many bullets to a single clip
SWEP.Primary.Delay			= 0.3	-- Delay in seconds between each shot
SWEP.Primary.DefaultClip	= 200	 -- Default number of bullets it comes with
SWEP.Primary.Force			= 3000	-- Amount of force a bullet has on physics objects			 
SWEP.Primary.TakeAmmoPerBullet 		= true	-- True = take 1 ammo for each bullet, False = take one bullet for each shot
SWEP.Primary.Automatic		= true	-- Set to true for automatic fire
SWEP.Primary.Ammo			= "pistol"	-- What ammo it takes e.g buckshot for shotgun ammo

